﻿@model MiniWeb.Web.Controllers.Admin.LinksManager.ViewModels.SaveLinks
@{
    ViewBag.Title = "保存链接表";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<link href="../../Scripts/jquery-validation-engine/css/template.css" rel="stylesheet"
    type="text/css" />
<link href="../../Scripts/jquery-validation-engine/css/validationEngine.jquery.css"
    rel="stylesheet" type="text/css" />
<link href="../../Scripts/kindeditor-4.1.10/themes/default/default.css" rel="stylesheet"
    type="text/css" />
<script src="../../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery-validation-engine/js/jquery.validationEngine.js"
    type="text/javascript"></script>
<script src="../../Scripts/jquery-validation-engine/js/languages/jquery.validationEngine-zh_CN.js"
    type="text/javascript"></script>
<script src="../../Scripts/kindeditor-4.1.10/kindeditor-min.js" type="text/javascript"></script>
<script src="../../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

<style>
.field-validation-error{float:right;}
</style>
<script type="text/javascript">
    $(function () {
        $("#form1").validationEngine();

        $(".box").colorbox({
            iframe: true,
            width: 900,
            height: 850,
            onClosed: function () {
                window.location.reload();
            }
        });
    });
</script>
<div class="wrap">
    <div class="right_box_card">
        <ul>
            <li class="right_box_card1"><a href="#">保存链接表</a></li>
        </ul>
    </div>

    <div style="color: red;"></div> 
        
    @using (Html.BeginForm("Save", "LinksManager", FormMethod.Post, new { id = "form1" }))
    {
    <table class="enter_tab" width="50%" border="0" cellpadding="0" cellspacing="0">
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(m=>m.linkName)              
            </td> 
            <td class="entry_tab_td2">
                 @Html.TextBoxFor(c => c.linkName, new { @class = "validate[required] text-input", style = "width:240px;" })
              
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                  @Html.LabelFor(c => c.linkAddress)
                            
            </td>
            <td class="entry_tab_td2">
                  @Html.TextBoxFor(c => c.linkAddress, new { @class = "validate[required] text-input", style = "width:240px;" })
             
            </td>
        </tr>
        <tr>
        <td colspan="2">
        @Html.ValidationSummary()
        </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1"></td>
            <td class="entry_tab_td2"><input type="submit" value="添加"/></td>
        </tr>
    </table>
    }
</div>
